<script>
	import {
		getAddress,
		getLocation,
		Translation
	} from '@/utils/getAddres.js';
	import store from './store';
	export default {
		async onLaunch() {
			try {
				
				/** 第一次进来展示用户在那个位置 **/
				// const location = await getLocation();
				// store.commit('setLocation', location);
				// const address = await getAddress(location);
				// store.commit('setcnAddress', address.pois[0].title);
				// const ugaddress = await Translation(address.pois[0].title);
				// store.commit('setugAddress', ugaddress);
				
				/** 第一次进来展示用户已经选择的位置 **/
				
			} catch (error) {
				console.error('Error:', error);
			}
		},
		onShow() {
			console.log('App Show');
		},
		onHide() {
			console.log('App Hide');
		},
		methods: {}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	@import '@/static/css/font.css';

	page {
		background-color:$uni-bg-color;
	}
</style>